package test.zuche;

public abstract class Car {
    private String name,chepai;
    private int money;
    private boolean chuzu; //ture 没出租，
    // private int day;

    public Car() {
        this.chuzu=true;
    }

    public Car(String name, String chepai, int money, boolean chuzu) {
        this.name = name;
        this.chepai = chepai;
        this.money = money;
        this.chuzu = chuzu;
    }

    public abstract double money(int day);
    public void infor () {
        System.out.print("车名：" + getName()+"\t");
        System.out.print("车牌：" + getChepai()+"\t");
        System.out.print("车日租金：" + getMoney()+"\t");
        System.out.print("出租状态："+(chuzu?"未出租":"已出租"+"\t"));
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getChepai() {
        return chepai;
    }

    public void setChepai(String chepai) {
        this.chepai = chepai;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public boolean isChuzu() {
        return chuzu;
    }

    public void setChuzu(boolean chuzu) {
        this.chuzu = chuzu;
    }


}
